home *** CD-ROM | disk | FTP | other *** search
- Path: casbah.acns.nwu.edu!muzaffar
- From: muzaffar@casbah.acns.nwu.edu (Usman Muzaffar)
- Newsgroups: comp.lang.c
- Subject: Re: What is localhost?
- Date: 5 Apr 1996 20:00:38 GMT
- Organization: Northwestern University, Evanston IL
- Message-ID: <4k3u56$eek@news.acns.nwu.edu>
- References: <4k24s5$rt1@ustsu10.ust.hk>
- NNTP-Posting-Host: casbah.acns.nwu.edu
-
- In article <4k24s5$rt1@ustsu10.ust.hk>,
- Chui Ka Ming <cskmchui@uxmail.ust.hk> wrote:
- >
- >Hello all,
- >
- > I am trying to writing a echo server and client. when
- >I had started the server and then started client on the same host
- >I typed : client localhost port_name . However, the connection
- >was refused. I known that some internet program able to bind
- >localhost to the offical name. Could you tell me how to write
- >it? For the server, I got the host address by getenv("HOST")
- >then gethostbyname() function.
- >
- >Thank a lot =>
- >Henry Chui
- >
-
- I think you'd get better responses (and less heat) if you posted
- this to comp.unix.programmer or even one of the networking groups.
-
-
-